<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.us.groups.permission.php Sat Jul 18 12:48:09 CST 2009
 */

if (false === defined("XOOPS_ROOT_PATH")) {	exit();}

$form = new XoopsForm("", "form", $formUrl, "post",true);
$group_access_permission = new XoopsFormRadio(_GP_FORM_GROUP_ACCESS_PERM,"group_access_permission",$groups_arr["group_access_permission"],"<br/>");
$group_access_permission->addOptionArray($group_access_permission_rows);
$form->addElement($group_access_permission);

$group_post_permission = new XoopsFormRadio(_GP_FORM_GROUP_POST_PERM,"group_post_permission",$groups_arr["group_post_permission"],"<br/>");
$group_post_permission->addOptionArray($group_post_permission_rows);
$form->addElement($group_post_permission);

$group_reply_permission = new XoopsFormRadio(_GP_FORM_GROUP_REPLY_PERM,"group_reply_permission",$groups_arr["group_reply_permission"],"<br/>");
$group_reply_permission->addOptionArray($group_reply_permission_rows);
$form->addElement($group_reply_permission);

$group_join_permission = new XoopsFormRadio(_GP_FORM_GROUP_JOIN_PERM,"group_join_permission",$groups_arr["group_join_permission"],"<br/>");
$group_join_permission->addOptionArray($group_join_permission_rows);
$form->addElement($group_join_permission);

$form->addElement(new XoopsFormHidden("ac","savegroupperm"));
$form->addElement(new XoopsFormHidden("group_id",$groups_arr["group_id"]));
$form->addElement(new XoopsFormButton("","submit",_SUBMIT,"submit"));
$form->assign($xoopsTpl);